<?php

namespace app\admin\validate;

use \app\common\validate\BaseValidate;

class LoginValidate extends BaseValidate
{
    protected $rule = [
        'name' => 'require',
        'password' => 'require',
    ];

    //错误信息
    protected $message = [
        'name.require' => '请输入 账号',
        'password.require' => '请输入 登录密码',
    ];

    protected $scene = [
        'save' => ['name', 'password'],
    ];
}